@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
#cfx-tools-button,
#cfx-control-button{
border:3px solid transparent!important;
-moz-border-radius:6px;
list-style-image:url("chrome://global/skin/cfxh/buttons.png");
margin:2px 1px!important;
padding:2px 3px!important}

#cfx-control-button > .toolbarbutton-icon,
#cfx-tools-button > .toolbarbutton-icon{
margin:0!important;
padding:0!important}

#cfx-control-button > .toolbarbutton-menu-dropmarker,
#cfx-tools-button > .toolbarbutton-menu-dropmarker{
display:none!important}

#cfx-control-button:not([disabled="true"]):hover,
#cfx-tools-button:not([disabled="true"]):hover{
background:#f3f7fc;
-moz-border-top-colors:#ecf1f8 #d4dae0 #fafcff;
-moz-border-right-colors:#e1ebf7 #cbd3de #f3f7fc;
-moz-border-bottom-colors:#d8e4f4 #c3cfdc #f1f6fc;
-moz-border-left-colors:#e2ebf7 #cbd3de #f8fbfe}

#cfx-control-button[open="true"]:not([disabled="true"]),
#cfx-tools-button[open="true"]:not([disabled="true"]),
#cfx-control-button[open="true"]:not([disabled="true"]):hover,
#cfx-tools-button[open="true"]:not([disabled="true"]):hover{
background:#ecf0f7;
-moz-border-top-colors:#f3f8fd #c4c8cf #e9eaed;
-moz-border-right-colors:#ecf2fc #c7ced6 #edf1f7;
-moz-border-bottom-colors:#ecf2fc #c7ced6 #edf1f7;
-moz-border-left-colors:#ebf2fc #bcc4cd #e6e9ec}

#main-window[theme="cfxec"] #cfx-tools-button[open="true"]:not([disabled="true"]),
#main-window[theme="cfxec"] #cfx-tools-button[open="true"]:not([disabled="true"]):hover,
#main-window[theme="cfxec"] #cfx-control-button[open="true"]:not([disabled="true"]):hover,
#main-window[theme="cfxec"] #cfx-control-button[open="true"]:not([disabled="true"]){
background:#272627;
-moz-border-top-colors:#444444 #030303 #272627;
-moz-border-right-colors:#444444 #030303 #272627;
-moz-border-bottom-colors:#444444 #030303 #272627;
-moz-border-left-colors:#444444 #030303 #272627;
-moz-border-radius:3px}

#main-window[theme="cfxec"] #cfx-control-button:not([disabled="true"]):hover,
#main-window[theme="cfxec"] #cfx-tools-button:not([disabled="true"]):hover{
background:#343434;
-moz-border-top-colors:#030303 #444444 #343434;
-moz-border-right-colors:#030303 #444444 #343434;
-moz-border-bottom-colors:#030303 #444444 #343434;
-moz-border-left-colors:#030303 #444444 #343434;
-moz-border-radius:3px}

#main-window[theme="cfxe"] #cfx-tools-button,
#cfx-tools-button{
-moz-image-region:rect(0,28px,19px,0)}

#main-window[theme="cfxe"] #cfx-control-button,
#cfx-control-button{
-moz-image-region:rect(19px,28px,38px,0)}

#main-window[theme="cfxec"] #cfx-tools-button{
-moz-image-region:rect(38px,28px,57px,0)}

#main-window[theme="cfxec"] #cfx-control-button{
-moz-image-region:rect(57px,28px,76px,0)}

/*
#main-window:not([theme="cfxe"]) #cfx-tools-button,
#main-window:not([theme="cfxec"]) #cfx-tools-button,
#main-window:not([theme="cfxe"]) #cfx-control-button,
#main-window:not([theme="cfxec"]) #cfx-control-button{
display:none!important}
*/